package ym.ecrm.core.domain.customerManagement;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import ym.ecrm.core.domain.systemManagement.User;

/**
 * 伙伴客户类
 * 
 * @author fage
 * @version 1.0
 */
@Entity
@DiscriminatorValue("partner")
public class PartnerCustomer extends Customer {
	/**
	 * progressing 进展阶段
	 */
	private String progressing;
	/**
	 * hotPints 是否为热点客户
	 */
	private String hotPints;
	/**
	 * heat 热度
	 */
	private String heat;
	/**
	 * valueAssessment 价值评估
	 */
	private String valueAssessment;
	/**
	 * url 网址
	 */
	private String url;
	/**
	 * income 年收入
	 */
	private String income;
	/**
	 * scale 人员规模
	 */
	private String scale;// 人员规模
	/**
	 * relationGread 关系等级
	 */
	private String relationGread;
	/**
	 * creditGread 信用等级
	 */
	private String creditGread;// 信用等级

	/**
	 * contacters 联系人
	 */
	@OneToMany(targetEntity = Contacter.class, cascade = { CascadeType.PERSIST,
			CascadeType.MERGE }, fetch = FetchType.EAGER)
	@JoinColumn(name = "customerId")
	private Set<Contacter> contacters = new HashSet<Contacter>();

	public String getProgressing() {
		return progressing;
	}

	public void setProgressing(String progressing) {
		this.progressing = progressing;
	}

	public String getHotPints() {
		return hotPints;
	}

	public void setHotPints(String hotPints) {
		this.hotPints = hotPints;
	}

	public String getHeat() {
		return heat;
	}

	public void setHeat(String heat) {
		this.heat = heat;
	}

	public String getValueAssessment() {
		return valueAssessment;
	}

	public void setValueAssessment(String valueAssessment) {
		this.valueAssessment = valueAssessment;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIncome() {
		return income;
	}

	public void setIncome(String income) {
		this.income = income;
	}

	public String getScale() {
		return scale;
	}

	public void setScale(String scale) {
		this.scale = scale;
	}

	public String getRelationGread() {
		return relationGread;
	}

	public void setRelationGread(String relationGread) {
		this.relationGread = relationGread;
	}

	public String getCreditGread() {
		return creditGread;
	}

	public void setCreditGread(String creditGread) {
		this.creditGread = creditGread;
	}

	public Set<Contacter> getContacters() {
		return contacters;
	}

	public void setContacters(Set<Contacter> contacters) {
		this.contacters = contacters;
	}

}
